package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: home
 * Date: 11/3/12
 * Time: 10:38 PM
 * To change this template use File | Settings | File Templates.
 */
public class FilmsPage extends InternalPage {
    @FindBy(xpath = "//nav//li[1]//div[contains(@class, 'button')]//a")
    public WebElement addMovieButton;

    @FindBy(xpath = "//nav//li[2]//div[contains(@class, 'button')]//a")
    public WebElement updateAllButton;

    @FindBy(xpath = "//nav//li[3]//div[contains(@class, 'button')]//a")
    public WebElement exportButton;

    @FindBy(xpath = "//div[contains(@class, 'searchbox')]")
    public WebElement searchForMoviesField;

    @FindBy(xpath = "//div[contains(@class, 'sort')]//div[3]/a[@id='category-button']/span[2]")
    public WebElement categoriesDropdown;

    @FindBy(xpath = "//div[contains(@class, 'sort')]//div[2]/a[@id='sort-button']/span[2]")
    public WebElement sortByName;

    @FindBy(xpath = "//div[contains(@class, 'sort')]//div[1]/a[@id='n-button']/span[2]")
    public WebElement resultsPerPage;

    @FindBy(xpath = "//div[@id='results']/a")
    public List<WebElement> linksToFilms;
}
